package com.winter.common.exception;

public class BizException extends RuntimeException {

    private BaseRespCode code;

    private Object[] params;

    public BizException(BaseRespCode code) {
        super(code.getMsg());
        this.code = code;
    }

    public BizException(BaseRespCode code, String message) {
        super(message);
        this.code = code;
    }

    public BizException(BaseRespCode code, Object... params) {
        super(code.getMsg());
        this.code = code;
        this.params = params;
    }

    public BizException(BaseRespCode code, String message, Object... params) {
        super(message);
        this.code = code;
        this.params = params;
    }

}
